//
//  PlaceOrderHeaderCell.m
//  AmountBody
//
//  Created by smm on 2017/12/29.
//  Copyright © 2017年 RCMTM. All rights reserved.
//

#import "PlaceOrderHeaderCell.h"

@implementation PlaceOrderHeaderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setCellHeadWithName:(NSString*)name
{

    _centerLabel.text = name;
    _centerLabel.font = [UIFont systemFontOfSize:20];
    [_centerLabel sizeToFit];
    CGFloat jianGeH = 15;
    CGFloat imageW = 17;
    CGFloat imageH = 25;
    CGFloat wid = imageW*2+10+_centerLabel.frame.size.width;
    

    _leftImage.frame = CGRectMake((SCREEN_W-wid)/2.0, jianGeH, imageW, imageH);
    _leftImage.image = [UIImage imageNamed:@"@left"];
    _centerLabel.frame = CGRectMake(_leftImage.frame.origin.x+_leftImage.frame.size.width+5, jianGeH, _centerLabel.frame.size.width, 30);

    _rightImage.frame = CGRectMake(_centerLabel.frame.origin.x+_centerLabel.frame.size.width+5, jianGeH, imageW, imageH);
    _rightImage.image = [UIImage imageNamed:@"@right"];
    _contentLabel.text = @"Selection for you";
    _contentLabel.textColor = QianZi_color;
    _contentLabel.font = Cell_Big_Font;
    [_contentLabel sizeToFit];
    _contentLabel.frame = CGRectMake((SCREEN_W-_contentLabel.frame.size.width)/2.0, _centerLabel.frame.origin.y+_centerLabel.frame.size.height, _contentLabel.frame.size.width, Nomal_Label_H);
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
